libxl: Do not use-after-free on ao progress reporting
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 17 May 2012 13:45:41 +0000 (14:45 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 17 May 2012 13:45:41 +0000 (14:45 +0100)
commita836d6543e0b417e147f01950e4fccfdc87fc449
tree55e9c83b90ab607270a3ecaae8ee9a02a1be0d9c
parent79d00fc950e952a06fa986af6c58341705f06fac
libxl: Do not use-after-free on ao progress reporting

We need to call libxl__free_all after egc_run_callbacks since some of
the callbacks might be ao progress reports allocated from the egc's
gc.

Fixes a segfault in egc_run_callbacks.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_event.c